package com.sservice.service.service;

import com.sservice.model.entity.SaleCommission;
import com.sservice.model.vo.SaleCommissionVo;

import java.math.BigDecimal;
import java.util.List;

public interface ISaleCommissionService {

    /**
     * 分页查询:关键字，手机号、字段升降序、每页显示大小，某一页
     * 默认进行每页15个显示
     *
     * @param user
     * @return
     */
    List<SaleCommission> queryByPage(SaleCommissionVo user);

    int queryCount(SaleCommissionVo user);

    int deleteByPrimaryKey(Integer id);

    int insert(SaleCommission record);

    int insertSelective(SaleCommission record);

    int proofread();

    SaleCommission selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(SaleCommission record);

    /***
     *  修正佣金额
     * @param sc
     * @param actual
     */
    public void proofCommission(SaleCommission sc, BigDecimal actual);

    /**
     * 佣金支付
     *
     * @param record
     * @return
     */
    Object giveCommission(SaleCommission record);

}
